package com.home.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.dao.HouseUseDao;
import com.home.model.Fix;
import com.home.model.HouseUse;
import com.home.service.HouseUseService;
@Service("houseUseService")
public class HouseUseServiceImpl implements HouseUseService{
	@Autowired
	private HouseUseDao<HouseUse,Integer> houseUseDao;
	
	
	public void delete(HouseUse houseUse) {
		this.getHouseUseDao().delete(houseUse.getId());
	}

	public HouseUse getHouseUse(Integer id) {
		return this.getHouseUseDao().get(id);
	}

	public List<HouseUse> getList() {
		return this.getHouseUseDao().getAll();
	}

	public void save(HouseUse houseUse) {
		this.getHouseUseDao().save(houseUse);
	}

	public HouseUseDao<HouseUse, Integer> getHouseUseDao() {
		return houseUseDao;
	}

	public void setHouseUseDao(HouseUseDao<HouseUse, Integer> houseUseDao) {
		this.houseUseDao = houseUseDao;
	}

}
